<fieldset>
	<label>Rating</label> : <input type="text" name="rating" id="rating" style="width:50px;" value="" class="text_na" /> (1 - 5)<br /><br />
	<a id="simpan" href="#" style="float:right">Rating Sekarang</a>
</fieldset>
<script>

$('#simpan').linkbutton({  
	iconCls: 'disk'  
});

$('#rating').numberbox({  
    min:1,
	max:5  
});
 $('#simpan').bind('click',function(){
 	if($('#rating').val()==''){
		//mywindow_close();
		$.messager.alert("Isi Rating","Isi Rating",'error');
	}
	else{
		$.post(host+'backend/aktif',{id:'<?=$id?>',rating:$('#rating').val()},function(r){
			if(r==1){
				mywindow_close();
				$.messager.alert("Simpan Rating","Rating Sudah Disimpan",'info');
				$('#setuju').datagrid('reload');
			}
		});
	}
 });
				
</script>